package com.csweimei.rentmanagementtreasure.tenant.ui.act;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProviders;

import android.content.Intent;
import android.os.Bundle;

import com.chad.library.BR;
import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.base.AppViewModelFactory;
import com.csweimei.rentmanagementtreasure.databinding.ActivityCustomBinding;
import com.csweimei.rentmanagementtreasure.databinding.ActivityCustomerBinding;
import com.csweimei.rentmanagementtreasure.http.entity.CustomerBean;
import com.csweimei.rentmanagementtreasure.tenant.viewModel.AddFollowVM;
import com.csweimei.rentmanagementtreasure.tenant.viewModel.CustomVM;

import me.goldze.mvvmhabit.base.BaseActivity;

public class CustomActivity extends BaseActivity<ActivityCustomBinding, CustomVM> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_custom;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initData() {
        super.initData();
        viewModel.setActivity(this);
    }

    @Override
    public CustomVM initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        return ViewModelProviders.of(this,factory).get(CustomVM.class);
    }

}